import $ from './jquery.js';
export function lfList() {
    $(window).scroll(function () {
        let num = $(this).scrollTop();
        console.log(num)
        if (num > 550) {
            $('.sn-nav-wrapper').css('display', 'block')
        } if (num < 550) {
            $('.sn-nav-wrapper').css('display', 'none')
        }
    })
}

export function lfListClick() {
    let down = 0;
    let arr = Array.from($('.mui-lift-nav'))
    for (let i = 0; i < arr.length - 1; i++) {
        arr[i].onclick = function () {
            $(window).scrollTop(down+700*i)
           
        }
    }
    $('.mui-lift-nav').eq(-1).click(function () {
        $(window).scrollTop(0)
    })
}